import request from '@/utils/request'

// 上传图片
export function upLoad(data) {
  return request({
    url: '/common/upload',
    method: 'post',
    data: data,
  })
}


// 新增学情分析
export function addAnalysisOfTheStudents(data) {
  return request({
    url: '/system/studentAnalysis/statistics',
    method: 'post',
    data: data,
  })
}

// 获取错题卷详情信息
export function getwrongQuestionDetail(data) {
  return request({
    url: '/system/studentAnalysis/paper/'+data,
    method: 'get',
  })
}

// 获取错题成卷列表
export function getWrongQuestionList(query) {
  return request({
    url: '/system/studentAnalysis/paper/list',
    method: 'get',
    params: query
  })
}

/**
 * 
 * 
 * export function getWrongQuestionList(query) {
  return request({
    url: `/system/studentAnalysis/paper/list?pageSize=${query.pageSize}&pageNum=${query.pageNum}&learningStatistics.topicTag=991`,
    method: 'get',
  })
}
 */
// 获取个人报告
export function getPersonalReportsList(query) {
  return request({
    url: '/system/studentAnalysis/statistics/personalFile',
    method: 'get',
    params: query
  })
}